import request from '@/service/request'

/*  菜单与权限 page接口
* @param {Object} params
*  */
export const treeMenuPermitApi = () => {
    return request.post('请求接口api')
}

/*  菜单与权限 list接口 */
export const listMenuPermitApi = (params) => {
    return request.post('请求接口api',params)
}

/* 菜单与权限 删除
*  @param {number} id
* */
export const delMenuPermitApi = (id) => {
    return request.post(`请求接口api${id}`)
}

/* 菜单与权限 保存
*  @param {number} id
*  @param {string} permissionName
*  @param {string} permissionKey
*  @param {string} remarks
* */
export const saveMenuPermitApi = (params) => {
    return request.post('请求接口api', params)
}

/* 菜单与权限 根据token获取用户的菜单tree
*/
export const getUserMenuTreeApi = () => {
    return request.post('请求接口api')
}
